<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>成品管理</title>
    <link rel="stylesheet" type="text/css" href="jquery-easyui-1.6.7/themes/bootstrap/easyui.css"/>
    <link rel="stylesheet" href="css/icon.css"/>
    <link rel="stylesheet" href="jquery-easyui-1.6.7/themes/icon.css"/>
    <link rel="stylesheet" href="css/order_report.css"/>
    <link rel="stylesheet" href="css/icon_state.css"/>
    <link rel="stylesheet" href="css/form.css"/>
    <link rel="stylesheet" href="css/kendo_custum.css"/>
    <link rel="stylesheet" href="jquery-easyui-1.6.7/themes/icon_expand.css"/>
    <script type="text/javascript" src="jQuery/jquery-3.1.1.min.js"></script>
    <script type="text/javascript" src="jquery-easyui-1.6.7/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="jquery-easyui-1.6.7/jquery.easyui.expand.js"></script>
    <script type="text/javascript" src="jquery-easyui-1.6.7/locale/easyui-lang-zh_CN.js"></script>
    <script type="text/javascript" src="js/pages/jc/button_generate.js"></script>
    <script type="text/javascript" src="js/util/utils.js"></script>
    <script type="text/javascript" src="js/util/loadEventUtil.js"></script>
    <script type="text/javascript" src="js/util/memoryColumnUtil.js"></script>
    <!-- kendo -->
    <link rel="stylesheet" href="KendoUI/styles/kendo.common.min.css"/>
    <link rel="stylesheet" href="KendoUI/styles/kendo.default.min.css"/>
    <link rel="stylesheet" href="KendoUI/styles/kendo.rtl.min.css"/>
    <script type="text/javascript" src="KendoUI/js/jszip.min.js"></script>
    <script type="text/javascript" src="KendoUI/js/kendo.all.min.js"></script>
    <script type="text/javascript" src="KendoUI/js/messages/kendo.messages.zh-CN.min.js"></script>
    <script type="text/javascript" src="js/util/kendo.config.js"></script>
    <link rel="stylesheet" href="css/global.css">
</head>
<body th:data-menu_id="${MENU_ID}">
<div class="easyui-layout" data-options="fit:true">
    <div data-options="region:'north',height:50">
        <div class="datebox-group" style="height: 40px">
            <ul style="width: 100%;height: 100%;margin: 0;">
                <li style="height: 32px;">
                    <div class="btn-group pull-left">
                        <input id="start" class="easyui-datebox"
                               data-options="label:'起始日期：',labelWidth:85,value:getRangeDate()">
                    </div>
                    <div class="btn-group pull-left">
                        <input id="end" class="easyui-datebox"
                               data-options="label:'终止日期：',labelWidth:85,value:getCurrentDate(0)">
                    </div>
<!--                    <div class="btn-group pull-left hidden">-->
<!--                        <input id="state" class="easyui-switchbutton"-->
<!--                               data-options="value:true,checked:true,width:80,onText:'明细',offText:'汇总',onChange:stateChange">-->
<!--                    </div>-->
<!--                    <div class="btn-group pull-left hidden">-->
<!--                        <input id="contactCompanyId" class="easyui-combobox"-->
<!--                               data-options="label:'客户：',labelWidth:70,-->
<!--                                             url:'contactCompany/listQuery',method:'GET',-->
<!--                                             valueField:'companyName',textField:'companyName',-->
<!--                                             limitToList:true">-->
<!--                    </div>-->
                    <!--<div class="btn-group pull-left">
                        <input id="type" class="easyui-combobox"
                               data-options="label:'结账类型：',labelWidth:85,limitToList:true,
                                             textField:'text',valueField:'id',
                                             value:'欠账',
                                             panelHeight:'auto',data:[{id:'现金',text:'现金'},{id:'欠账',text:'欠账'},{id:'全部',text:'全部'}]">
                    </div>-->
<!--                    <div id="search_area" class="btn-group pull-left">-->
<!--                        <a id="btn_search" class="easyui-linkbutton" data-options="-->
<!--                            text: '查询',-->
<!--                            size: 'small',-->
<!--                            group: `g1`,-->
<!--                            iconCls: 'icon-search',-->
<!--                            onClick: btn_search,-->
<!--                            plain: true"></a>-->
<!--                    </div>-->
                    <div id="north" class=" pull-left"></div>
<!--                    <div class="pull-right">-->
<!--                        <div style="height: 50%;">-->
<!--                            <span style="padding: 1px;width: 12px;height:12px;display: inline-block; background-color: #1818df;"> </span>-->
<!--                            <span>未审核</span>-->
<!--                        </div>-->
<!--                    </div>-->
                </li>
<!--                <li>-->
<!--                    <div id="north" class=" pull-left"></div>-->
<!--                </li>-->
            </ul>
        </div>
    </div>
    <div data-options="region:'center'">
        <div id="tabs" class="easyui-tabs" data-options="fit:true,border:false,onSelect:onSelect">
            <div data-options="title:'预发货码单'">
                <table id="v_grid"></table>
            </div>
            <div data-options="title:'成品发货'">
                <table id="v_grid_0"></table>
            </div>
            <div data-options="title:'成品入库'">
                <table id="v_grid_1"></table>
            </div>
            <div data-options="title:'成品库存'">
                <table id="v_grid_2"></table>
            </div>
            <div data-options="title:'待处理'">
                <table id="v_grid_3"></table>
            </div>
            <div data-options="title:'本厂库存'">
                <table id="v_grid_6"></table>
            </div>

            <div data-options="title:'预发货码单明细'">
                <table id="v_grid_4"></table>
            </div>
            <div data-options="title:'成品发货明细'">
                <table id="v_grid_5"></table>
            </div>
        </div>
    </div>
</div>

<div id="yfh_win" class="easyui-dialog" title="生成页面" style="width:750px;height:600px;" data-options="iconCls:'icon-save',modal:true,closed:true">
    <div class="easyui-layout" data-options="fit:true">
        <div data-options="region:'north',height:170">
            <div style="padding-top: 10px;padding-left: 20px">

                <input id="billbarcode" class="easyui-textbox" data-options="label:'发货单号',labelAlign:'right',width:200,labelWidth:80,readonly:true">
                <div style="width: 100%;height:5px;border:0px solid red"></div>
                <input id="client" class="easyui-combobox"  data-options="label:'客&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;户',labelAlign:'right',readonly:true,required:true,width:400,labelWidth:70">
                <input id="hideClientA" class="easyui-checkbox" name="fruit" value="客户是否打印" data-options="labelWidth:1">
                <input id="billdate" class="easyui-datebox" data-options="label:'发货日期',labelAlign:'right',width:180,labelWidth:80,readonly:false,value:getCurrentDate(0)">
                <div style="width: 100%;height:5px;border:0px solid red"></div>
                <input id="address" class="easyui-combobox" data-options="label:'送货地址',labelAlign:'right',width:430,labelWidth:70">
                <input id="manager" class="easyui-textbox"  data-options="label:'承运人',labelAlign:'right',width:180,labelWidth:70">
                <!--                <div style="width: 100%;height:5px;border:0px solid red"></div>-->
                <!--                <input id="price_bill" class="easyui-textbox"  data-options="label:'单价：',labelAlign:'right',width:200,labelWidth:70">-->
                <!--                <input id="showPrice_bill" class="easyui-checkbox" name="fruit" value="单价是否打印" data-options="labelWidth:1">-->
                <!--                <div style="width: 100%;height:5px;border:0px solid red"></div>-->
                <!--                <input id="address_detail" class="easyui-textbox" data-options="label:'收货单位',labelAlign:'right',width:380,labelWidth:70">-->
                <div style="width: 100%;height:5px;border:0px solid red"></div>
                <input id="memo" class="easyui-textbox" data-options="label:'发货备注',labelAlign:'right',width:430,labelWidth:70">
                <input id="carnumber" class="easyui-textbox" data-options="label:'车牌号',labelAlign:'right',width:180,labelWidth:70">
<!--                <input id="client" class="easyui-combobox"  data-options="label:'客户：',labelAlign:'right',readonly:true,required:true,width:360">-->
<!--                <input id="hideClientA" class="easyui-checkbox" name="fruit" value="客户是否打印" data-options="labelWidth:1">-->
<!--                <div style="width: 100%;height:5px;border:0px solid red"></div>-->
<!--                <input id="price" class="easyui-textbox"  data-options="label:'单价：',labelAlign:'right',width:175">-->

            </div>
        </div>
        <div data-options="region:'center' ">
            <table id="yfh_dg"></table>
        </div>
        <div data-options="region:'south',height:35 ">
            <div style="width: 25%;text-align: left;float:left">
                <a class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true,iconAlign:'left',height:30" onclick="setcombox()">刷新缓存</a>
            </div>
            <div style="width: 75%;text-align: right;float:left">
                <a class="easyui-linkbutton" data-options="iconCls:'icon-search',plain:true,iconAlign:'left',height:30" onclick="save_yfh()">生成</a>
                <a class="easyui-linkbutton" data-options="iconCls:'icon-no',plain:true,iconAlign:'left',height:30" onclick="close_yfh()">关闭</a>
            </div>

        </div>

    </div>
</div>

<div id="fh_main" class="easyui-dialog" title="设置发货抬头" style="width:450px;height:320px;" data-options="iconCls:'icon-save',modal:true,closed:true">
    <div class="easyui-layout" data-options="fit:true">
        <div data-options="region:'center' ">
            <div style="padding-top: 20px;padding-left: 20px">

                <input id="client_main" class="easyui-combobox"  data-options="label:'客户：',labelAlign:'right',required:true,width:360">
                <input id="hideClientB" class="easyui-checkbox" name="fruit" value="客户是否打印" data-options="labelWidth:1">
                <div style="width: 100%;height:10px;border:0px solid red"></div>
                <input id="manager_main" class="easyui-textbox"  data-options="label:'经手人：',labelAlign:'right',width:180">
                <!-- <div style="width: 100%;height:5px;border:1px solid red"></div> -->
                <input id="carnumber_main" class="easyui-textbox" data-options="label:'车牌号:',labelAlign:'right',width:175,labelWidth:60">
                <div style="width: 100%;height:5px;border:0px solid red"></div>
                <input id="address_main" class="easyui-textbox" data-options="label:'收货单位',labelAlign:'right',width:180,labelWidth:80">
                <input id="priceB" class="easyui-textbox"  data-options="label:'单价：',labelAlign:'right',width:180,labelWidth:60">
                <input id="showPriceB" class="easyui-checkbox" name="fruit" value="单价是否打印" data-options="labelWidth:1">

<!--                <div style="width: 100%;height:10px;border:0px solid red"></div>-->
<!--                <input id="address_main" class="easyui-textbox" data-options="label:'收货单位',labelAlign:'right',width:360">-->
                <div style="width: 100%;height:10px;border:0px solid red"></div>
                <input id="memo_main" class="easyui-textbox" data-options="label:'发货备注',labelAlign:'right',width:360">
                <div style="width: 100%;height:5px;border:0px solid red"></div>
                <input id="remarkB" class="easyui-textbox" data-options="label:'厂内备注',labelAlign:'right',width:360,labelWidth:80">

            </div>
        </div>
        <div data-options="region:'south',height:35 ">
            <div style="width: 25%;text-align: left;float:left">
                <a class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true,iconAlign:'left',height:30" onclick="setcombox()">刷新缓存</a>
            </div>
            <div style="width: 75%;text-align: right;float:left">
<!--                <a class="easyui-linkbutton" data-options="iconCls:'icon-print',plain:true,iconAlign:'left',height:30" onclick="saveprint_main()">保存并打印</a>-->
                <a class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true,iconAlign:'left',height:30" onclick="save_main()">保存</a>
                <a class="easyui-linkbutton" data-options="iconCls:'icon-no',plain:true,iconAlign:'left',height:30" onclick="close_main()">关闭</a>
            </div>
        </div>
    </div>
</div>

<!--码单明细设置-->
<div id="fh_detail" class="easyui-dialog" title="码单明细设置" style="width:500px;height:600px;" data-options="iconCls:'icon-save',modal:true,closed:true">
    <div class="easyui-layout" data-options="fit:true">
        <div data-options="region:'north',height:90">
            <div style="padding-top: 10px;">

                <input id="fh_barcode" class="easyui-textbox" data-options="label:'发货单：',labelAlign:'right',width:200,labelWidth:70,readonly:true">
                <input id="priceC" class="easyui-textbox"  data-options="label:'单价：',labelAlign:'right',width:200,labelWidth:70">
                <div style="width: 100%;height:5px;border:0px solid red"></div>
                <input id="client_detail" class="easyui-combobox"  data-options="label:'客 户：',labelAlign:'right',required:true,width:460,labelWidth:70">
<!--                <input id="hideClientC" class="easyui-checkbox" name="fruit" value="客户是否打印" data-options="labelWidth:1">-->
<!--                <div style="width: 100%;height:5px;border:0px solid red"></div>-->
<!--                <input id="manager_detail" class="easyui-textbox"  data-options="label:'经手人：',labelAlign:'right',width:180,labelWidth:70">-->
<!--                <input id="carnumber_detail" class="easyui-textbox" data-options="label:'车牌号：',labelAlign:'right',width:200,labelWidth:70">-->
<!--                <div style="width: 100%;height:5px;border:0px solid red"></div>-->
<!--                <input id="address_detail" class="easyui-textbox" data-options="label:'收货单位',labelAlign:'right',width:180,labelWidth:70">-->

<!--                <input id="showPriceC" class="easyui-checkbox" name="fruit" value="单价是否打印" data-options="labelWidth:1">-->
<!--                <div style="width: 100%;height:5px;border:0px solid red"></div>-->
<!--                <input id="address_detail" class="easyui-textbox" data-options="label:'收货单位',labelAlign:'right',width:380,labelWidth:70">-->
<!--                <div style="width: 100%;height:5px;border:0px solid red"></div>-->
<!--                <input id="memo_detail" class="easyui-textbox" data-options="label:'发货备注',labelAlign:'right',width:380,labelWidth:70">-->
<!--                <div style="width: 100%;height:5px;border:0px solid red"></div>-->
<!--                <input id="remarkC" class="easyui-textbox" data-options="label:'厂内备注',labelAlign:'right',width:380,labelWidth:70">-->

            </div>
        </div>
        <div data-options="region:'center' ">
            <table id="fh_dg"></table>
        </div>
        <div data-options="region:'south',height:35 ">
            <div style="width: 25%;text-align: left;float:left">
                <a class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true,iconAlign:'left',height:30" onclick="setcombox()">刷新缓存</a>
            </div>
            <div style="width: 75%;text-align: right;float:left">
                <a class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true,iconAlign:'left',height:30" onclick="save_fhdetail()">保存</a>
                <a class="easyui-linkbutton" data-options="iconCls:'icon-no',plain:true,iconAlign:'left',height:30" onclick="close_fhdetail()">关闭</a>
            </div>

        </div>

    </div>
</div>

<!--发货明细设置-->
<div id="fh_bill" class="easyui-dialog" title="发货明细设置" style="width:750px;height:600px;" data-options="iconCls:'icon-save',modal:true,closed:true">
    <div class="easyui-layout" data-options="fit:true">
        <div data-options="region:'north',height:170">
            <div style="padding-top: 10px;">

                <input id="bill_barcode" class="easyui-textbox" data-options="label:'发货单号',labelAlign:'right',width:200,labelWidth:80,readonly:true">
                <div style="width: 100%;height:5px;border:0px solid red"></div>
                <input id="client_bill" class="easyui-combobox"  data-options="label:'客&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;户',labelAlign:'right',readonly:true,required:true,width:400,labelWidth:70">
                <input id="hideClient_bill" class="easyui-checkbox" name="fruit" value="客户是否打印" data-options="labelWidth:1">
                <input id="bill_date" class="easyui-datebox" data-options="label:'发货日期',labelAlign:'right',width:200,labelWidth:80,readonly:false">
                <div style="width: 100%;height:5px;border:0px solid red"></div>
                <input id="address_bill" class="easyui-combobox" data-options="label:'送货地址',labelAlign:'right',width:430,labelWidth:70">
                <input id="manager_bill" class="easyui-textbox"  data-options="label:'承运人',labelAlign:'right',width:200,labelWidth:70">
<!--                <div style="width: 100%;height:5px;border:0px solid red"></div>-->
<!--                <input id="price_bill" class="easyui-textbox"  data-options="label:'单价：',labelAlign:'right',width:200,labelWidth:70">-->
<!--                <input id="showPrice_bill" class="easyui-checkbox" name="fruit" value="单价是否打印" data-options="labelWidth:1">-->
                <!--                <div style="width: 100%;height:5px;border:0px solid red"></div>-->
                <!--                <input id="address_detail" class="easyui-textbox" data-options="label:'收货单位',labelAlign:'right',width:380,labelWidth:70">-->
                <div style="width: 100%;height:5px;border:0px solid red"></div>
                <input id="memo_bill" class="easyui-textbox" data-options="label:'发货备注',labelAlign:'right',width:430,labelWidth:70">
                <input id="carnumber_bill" class="easyui-textbox" data-options="label:'车牌号',labelAlign:'right',width:200,labelWidth:70">
<!--                <div style="width: 100%;height:5px;border:0px solid red"></div>-->
<!--                <input id="remark_bill" class="easyui-textbox" data-options="label:'厂内备注',labelAlign:'right',width:650,labelWidth:70">-->

            </div>
        </div>
        <div data-options="region:'center' ">
            <table id="fh_dg_bill"></table>
        </div>
        <div data-options="region:'south',height:35 ">
            <div style="width: 60%;text-align: left;float:left">
<!--                <a class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true,iconAlign:'left',height:30" onclick="setcombox()">刷新缓存</a>-->
                <a class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true,iconAlign:'left',height:30" onclick="btn_print_bill()">打印发货单</a>
                <a class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true,iconAlign:'left',height:30" onclick="btn_print()">打印细码单</a>
            </div>
            <div style="width: 40%;text-align: right;float:left">
                <a class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true,iconAlign:'left',height:30" onclick="save_fhbill()">保存</a>
                <a class="easyui-linkbutton" data-options="iconCls:'icon-no',plain:true,iconAlign:'left',height:30" onclick="close_fhbill()">关闭</a>
            </div>

        </div>

    </div>
</div>

<div id="ck_detail" class="easyui-dialog" title="库存明细查看、删减" style="width:600px;height:500px;" data-options="iconCls:'icon-save',modal:true,closed:true">
    <div class="easyui-layout" data-options="fit:true">
        <div data-options="region:'center' ">
            <table id="ck_dg"></table>
        </div>
        <div data-options="region:'south',height:35 ">
            <div style="width: 100%;text-align: right;">
<!--                <a class="easyui-linkbutton" data-options="iconCls:'icon-print',plain:true,iconAlign:'left',height:30">打印发货单</a>-->
                <a class="easyui-linkbutton" data-options="iconCls:'icon-no',plain:true,iconAlign:'left',height:30" onclick="close_cpdetail()">关闭</a>
            </div>

        </div>

    </div>
</div>

</body>
<script type="text/javascript" src="js/pages/fh/fh_dye_delivery_report_cp.js?version=1.3.9"></script>
</html>